import http from "@/untils/http"
import type { IParkSetData } from "@/untils/type"

// 获取停车场信息
export const getParkSetAPI = (data: IParkSetData) => {
  return http({
    url: '/park/list',
    method: 'get',
    data,
  })
}

// 新增停车场
export const addParkSetAPI = (data: IParkSetData) => {
  return http({
    url: '/park/add',
    method: 'post',
    data,
  })
}

// 修改停车场
export const editParkSetAPI = (data: IParkSetData) => {
  return http({
    url: '/park/update',
    method: 'post',
    data,
  })
}

// 停车场弃用
export const delParkSetAPI=(data:any)=>{
  return http({
    url: '/park/delete',
    method: 'get',
    data,
  })
}